package com.rmb.common.model.state;

import lombok.ToString;

/**
 * @version 1.0
 * @Author ZhaoMuYang
 * @Date 2021/1/8 19:40
 */
@ToString
public enum TaskStatus {
    //任务执行状态
    NOT_IMPLEMENTED_STATUS(0,"不可执行"),
    EXECUTOR_COTACT_STATUS(1,"待执行"),
    PERFORMABILITY_STATUS(2,"可执行"),
    EXECUTING_STATUS(3,"正在执行"),
    EXECUETION_STATUS(4,"执行完成");
    /**
     * 任务状态码
     */
    private Integer status;

    /**
     * 描述信息
     */
    private String message;

    private TaskStatus(Integer status,String  message){
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
